package com.codefish.codefishseckill.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 描述
 *
 * @author codefish
 * @version 1.0
 * @date 2022/07/20 下午 03:17
 */
@Configuration
public class RabbitMQConfig {

    public static final String ORDER_QUEUE_NAME = "seckill.order";

    @Bean
    public Queue orderQueue(){
        return QueueBuilder.durable(ORDER_QUEUE_NAME).build();
    }

}
